package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

import java.time.LocalDateTime;

/**
 * 失物招领对象 sys_lost_found
 *
 * @author mars
 * @date 2024-04-04
 */

@Data
@ApiModel(value = "失物招领对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_lost_found")
public class SysLostFound {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 外貌特征
     */
    @Excel(name = "外貌特征")
    @ApiModelProperty(value = "外貌特征")
    private String appearance;
    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    @ApiModelProperty(value = "联系方式")
    private String telephone;
    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String picture;
    /**
     * 发布人
     */
    @Excel(name = "发布人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "发布人")
    private Long userId;
    /**
     * 类型：1-失物招领 2-寻找失主
     */
    @Excel(name = "类型：1-失物招领 2-寻找失主")
    @ApiModelProperty(value = "类型：1-失物招领 2-寻找失主")
    private String type;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Long createById;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户姓名")
    private String userName;
}
